package danliebiao1;


import org.testng.annotations.Test;
import org.testng.asserts.Assertion;

import java.util.List;


public class test {
    @Test
    public void test(){
        SinglyLinkedList list=new SinglyLinkedList();
        list.addFirst(1);
        list.addFirst(2);
        list.addFirst(3);
        list.addFirst(4);
        //list.loop();
        list.loop1(value->{
            System.out.println(value);
        });
    }
    @Test
    public void test1(){
        SinglyLinkedList list=new SinglyLinkedList();
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(4);

        int i = list.get(1);
        System.out.println(i);


    }

}
